# -*- coding: utf-8 -*-
def convertMedataListToDict(metadataList):
    
    dict    = {}
    list    = None    
    group    = None
    
    for item in metadataList: # toutes les donnￃﾩes de la liste

        if item[0] != '-': # on a un groupe "- <groupe>"
            #print "processing group : %s" % item
            list = {}
            dict[item] = list
        else:
            #print "adding %s to list of %s group" % (item, group)
            [key, value] = item.strip('-').split(':', 1)
            list[key.strip()] = value;

    return dict